//
//  BCIndustryScreeningBaseSubview.m
//  GSBlockChain
//
//  Created by guoshikeji_a on 2018/11/19.
//  Copyright © 2018年 guoshikeji. All rights reserved.
//

#import "BCIndustryScreeningBaseSubview.h"

CGFloat const BCIndustryScreeningBaseLeftPadding = 20.0f;
//titleLabel 高度
CGFloat const BCIndustryScreeningBaseTitleHeight = 40.0f;

@implementation BCIndustryScreeningBaseSubview

- (UILabel *)customTitleLabel {
    if (!_customTitleLabel) {
        _customTitleLabel = [UILabel new];
        _customTitleLabel.font = [UIFont systemFontOfSize:16 weight:UIFontWeightRegular];
        _customTitleLabel.textColor = [UIColor qmui_colorWithHexString:@"#333333"];
        [self addSubview:_customTitleLabel];
        [_customTitleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(self).offset(BCIndustryScreeningBaseLeftPadding);
            make.top.mas_equalTo(self);
            make.right.mas_equalTo(self).offset(-BCIndustryScreeningBaseLeftPadding);
            make.height.mas_equalTo(BCIndustryScreeningBaseTitleHeight);
        }];
    }
    return _customTitleLabel;
}

- (instancetype)init
{
    self = [super init];
    if (self) {
        
    }
    return self;
}

- (void)setTitle:(NSString *)title {
    _title = title;
    self.customTitleLabel.text = title;
}



- (CGFloat)viewHeight {
    return BCIndustryScreeningBaseTitleHeight+20.0f;
}

@end
